package com.yjps.common.authc;


import org.apache.shiro.crypto.hash.Sha512Hash;

/**
 * Created by jessy on 2015/7/13.
 */
public class PasswordHelper {
    public static final String ps = "ps";
    public static String generatePassword(String username,String password){
        String passwordHash = new Sha512Hash(password, username + ps, 99).toString();
        System.out.println("username = " + username + " <>  password = " + password);
        System.out.println("passhash >>> " + passwordHash);
        return passwordHash;
    }
    public static void main(String[] args){
        System.out.println(generatePassword("admin41", "yijutest41"));

    }

}
